<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String basePath = request.getContextPath();
%>
<script src="<%=basePath%>/js/igd.mapper.js" type="text/javascript"></script>

<div class="pageFormContent" layoutH="56">
	<p>
		<label>JDBC驱动类：</label>
		<select name="driverName" id="driverName">
			<option value="com.mysql.jdbc.Driver">Mysql</option>
			<option value="oracle.jdbc.driver.OracleDriver">Oracle</option>
		</select>
	</p>
	<p>
		<label>连接字符串：</label>
		<input type="text" name="url" id="url" size="30" class="required" value="">
	</p>
	<p>
		<label>用户名：</label> 
		<input type="text" name="userName" id="userName" class="required" size="30" value="">
	</p>
	<p>
		<label>密码：</label>
		<input type="password" name="passWord" id="passWord" class="required" size="30" value="">
	</p>
	<p>
		<label>Schema或Catalog</label>
		<input type="text" name="schema" id="schema" class="required" size="30">
	</p>
	<p>
		<label>数据库表:</label>
		<select id="tables" name="tables">
			<option value="">请先获取数据库表</option>
		</select>
	</p>
	
	<p>
		<dl class="nowrap">
			<div class="button"><div class="buttonContent"><button type="button" onclick="$.mapper.getTables()">获取数据库表</button></div></div>
		</dl>
		<div class="divider"></div>
	</p>
	<p></p>

	<fieldset>
		<legend>反转代码:</legend>
		<dl class="nowrap">
			<dt>Java代码：</dt>
			<dd><textarea name="javaCode" id="javaCode" cols="80" rows="10" readonly="readonly"></textarea></dd>
		</dl>
		<dl class="nowrap">
			<dt>Ibatis代码：</dt>
			<dd><textarea name="ibatisCode" id="ibatisCode" cols="80" rows="10" readonly="readonly"></textarea></dd>
		</dl>
	</fieldset>
</div>